package com.ssy.lingxi.order.model.vo.mobile.request;

import com.ssy.lingxi.order.model.vo.basic.request.OrderIdVO;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 查询售后商品接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-26
 */
public class MobileOrderAfterSaleVO extends OrderIdVO implements Serializable {
    private static final long serialVersionUID = -4427248393913812182L;

    /**
     * App商城Id
     */
    @NotNull(message = "商城Id要大于0")
    @Positive(message = "商城Id要大于0")
    private Long shopId;

    /**
     * 售后类型，2-换货，3-退货，4-维修
     */
    @NotNull(message = "售后类型不能为空，2-换货，3-退货，4-维修")
    @Min(value = 2, message = "售后类型参数错误，2-换货，3-退货，4-维修")
    @Max(value = 4, message = "售后类型参数错误，2-换货，3-退货，4-维修")
    private Integer afterSalesType;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getAfterSalesType() {
        return afterSalesType;
    }

    public void setAfterSalesType(Integer afterSalesType) {
        this.afterSalesType = afterSalesType;
    }
}
